package com.ding;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import com.ding.service.Service;

@SpringBootApplication
public class RmiApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext context = SpringApplication.run(RmiApplication.class, args);
		Service service = context.getBean(Service.class);
		System.out.println(service.m());
	}
}
